#include <stdio.h>
void dep(int n);
int main()
{
    int n;
    scanf("%d",&n);
    dep(n);
}
void dep(int n)
{
    short int n2[300] = {0};
    short int n2tmp[300] = {0};
    short int n2len = 0;
    for (int i = 0; n > 0; i++, n /= 2)
    {
        if (n % 2)
        {
            n2tmp[n2len++] = i;
        }
    }
    for (int i = 0; i < n2len; i++){
        n2[i]=n2tmp[n2len-1-i];
    }
    for (int i = 0; i < n2len; i++)
    {
        if (i != n2len - 1)
        {
            if (n2[i] > 1)
            {
                printf("2(");
                dep(n2[i]);
                printf(")+");
            }
            else if (n2[i] == 1)
            {
                printf("2+");
            }
            else
            {
                printf("2(0)+");
            }
        }
        else{
            if (n2[i] > 1)
            {
                printf("2(");
                dep(n2[i]);
                printf(")");
            }
            else if (n2[i] == 1)
            {
                printf("2");
            }
            else
            {
                printf("2(0)");
            }
        }
    }
}